package com.platform.server.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.platform.server.dao.VipDao;
import com.platform.server.service.VipService;

@Service
public class VipServiceImpl implements VipService {

	@Autowired
	private VipDao vipDao;
	
	/**
	 * vip统计
	 */
	@Override
	public List<Map<String, Object>> selectVipList(String startTime,String endTime,String mobile,String integral_rank) {
		Map<String,Object> map = new HashMap<String,Object>();
		map.put("startTime", startTime);
		map.put("endTime", endTime);
		map.put("integral_rank", integral_rank);
		map.put("mobile", mobile);
		return vipDao.selectVipList(map);
	}

	@Override
	public Map<String, Object> selectAgreement() {
		// TODO Auto-generated method stub
		return vipDao.selectAgreement();
	}

	@Override
	public int intsertVipAgreement(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return vipDao.intsertVipAgreement(map);
	}

	@Override
	public int updateVipAgreement(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return vipDao.updateVipAgreement(map);
	}

	@Override
	public Map<String, Object> selectEquity() {
		// TODO Auto-generated method stub
		return vipDao.selectEquity();
	}

	@Override
	public int intsertVipEquity(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return vipDao.intsertVipEquity(map);
	}

	@Override
	public int updateVipEquity(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return vipDao.updateVipEquity(map);
	}

}
